package org.ssm.service.impl;

import org.ssm.dao.UserTypeMapper;
import org.ssm.pojo.User;
import org.ssm.pojo.UserType;
import org.ssm.service.UserTypeService;

import javax.annotation.Resource;
import java.util.List;

public class UserTypeServiceImpl implements UserTypeService {

    @Resource
    UserTypeMapper userTypeMapper;


    @Override
    public String update(UserType userType) {
        return userTypeMapper.update(userType);
    }

    @Override
    public User getOneUser(int id) {
        return userTypeMapper.getOneUser(id);
    }

    @Override
    public int getRecordCount(UserType userType) {
        return userTypeMapper.getRecordCount(userType);
    }

    @Override
    public List<UserType> getUserListByPage(UserType userType) {
        return userTypeMapper.getUserListByPage(userType);
    }

    @Override
    public List<UserType> getTopUserList() {
        return userTypeMapper.getTopUserList();
    }

    @Override
    public List<UserType> getAllUserTypeList() {
        return userTypeMapper.getAllUserTypeList();
    }
}
